package com.bjpowernode.boss.mvc.models.form.operator;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.stereotype.Service;

@Data
public class LoginForm {
    @NotNull(message = "必须输入登录名称")
    @Size(min = 5, max = 20, message = "登录名称长度在{min}-{max}之间")
    private String loginName;

    @NotNull(message = "必须输入登录密码")
    @Size(min = 32, max = 32, message = "登录密码格式错误")
    private String loginPwd;
}
